package business.modelLocators
{
	import mx.collections.ArrayCollection;
	
	import valueObjects.Product;
	import valueObjects.ShoppingCart;
	
	[Bindable]
	public class ProductModelLocator
	{
		public function ProductModelLocator()
		{
		}
		public static function getInstance():ProductModelLocator {
			if(instance == null) {
				instance = new ProductModelLocator();
			}
			return instance;	
		}
		private static var instance:ProductModelLocator = null;
		public var selectedProduct:Product = new Product();
		public var currentShoppingCart:ShoppingCart = new ShoppingCart();
		public var currentProduct:Product = new Product();
		public var allProducts:ArrayCollection= new ArrayCollection();
		public var allCategoreis:ArrayCollection = new ArrayCollection();
	}
}